package com.raymond.cmpp.client.handler;

import com.raymond.cmpp.client.CmppClient;
import com.raymond.cmpp.common.msg.response.ActiveTestResponseMessage;
import com.raymond.cmpp.common.msg.response.ConnectResponseMessage;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


/**
 * 连接响应处理
 *
 * @author :  raymond
 * @version :  V1.0
 * @date :  2021-08-05 15:47
 */
public class ActiveTestResponseMessageHandler extends SimpleChannelInboundHandler<ActiveTestResponseMessage> {

    private final static Logger logger = LoggerFactory.getLogger(ActiveTestResponseMessageHandler.class);

    @Override
    protected void channelRead0(ChannelHandlerContext ctx, ActiveTestResponseMessage msg) throws Exception {
        logger.info("链路响应:" + msg.getSequenceId());
    }
}
